package com.xuwang.pojo;

import java.sql.Timestamp;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 聚餐记录表(Sale)实体类
 *
 * @author abaaba
 * @since 2021-09-20 16:47:07
 * @version 1.0
 */
@ApiModel(value = "Sale",description = "聚餐记录表")
public class Sale implements Serializable {
    private static final long serialVersionUID = 716325762851709297L;
    /**
    * 主键
    */
	@ApiModelProperty(name = "id",notes = "主键",dataType = "Integer",required = true)
    private Integer id;
    /**
    * 参与人员
    */
	@ApiModelProperty(name = "people",notes = "参与人员",dataType = "String",required = true)
    private String people;
    /**
    * 创建时间
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = true)
    private Timestamp createTime;
    /**
    * 进货企业id
    */
	@ApiModelProperty(name = "companyId",notes = "售卖企业id",dataType = "Integer",required = true)
    private Integer companyId;
    /**
    * 备注
    */
	@ApiModelProperty(name = "remark",notes = "备注",dataType = "String",required = true)
    private String remark;
    /**
    * 售卖公司
    */
	@ApiModelProperty(name = "companyName",notes = "售卖公司",dataType = "String",required = true)
    private String companyName;
    /**
     * 售出食物集合
     */
    @ApiModelProperty(name = "saleType",notes = "售卖类型对象",dataType = "SaleType",required = true)
    private SaleType saleType;
    /**
     * 售出食物集合
     */
    @ApiModelProperty(name = "saleTypeId",notes = "售卖类型对象",dataType = "int",required = true)
    private int saleTypeId;
    /**
     * 售出食物集合
     */
    @ApiModelProperty(name = "saleFoodList",notes = "售出食物集合",dataType = "List<SaleFood>",required = true)
    private List<SaleFood> saleFoodList;

    public int getSaleTypeId() {
        return saleTypeId;
    }

    public void setSaleTypeId(int saleTypeId) {
        this.saleTypeId = saleTypeId;
    }

    /**
     * 售出企业集合
     */
    @ApiModelProperty(name = "companyInfo",notes = "售出企业集合",dataType = "CompanyInfo",required = true)


    private CompanyInfo companyInfo;

    public CompanyInfo getCompanyInfo() {
        return companyInfo;
    }

    public void setCompanyInfo(CompanyInfo companyInfo) {
        this.companyInfo = companyInfo;
    }

    public SaleType getSaleType() {
        return saleType;
    }

    public void setSaleType(SaleType saleType) {
        this.saleType = saleType;
    }

    public List<SaleFood> getSaleFoodList() {
        return saleFoodList;
    }

    public void setSaleFoodList(List<SaleFood> saleFoodList) {
        this.saleFoodList = saleFoodList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }
        
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
        
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

}